/*
Mif.Menu.Container
*/


Mif.Menu.Container=new Class({

	Implements: Options,
	
	options:{
		
	},

	initialize: function(options){
		this.outer=new Element('table', {'class': 'container'});
		var tr=new Element('tr').inject(this.outer);
		this.inner=new Element('td').inject(tr);
	},
	
	setStyle: function(style, value){
		this.outer.setStyle(style, value);
		return this;
	},
	
	setStyles: function(styles){
		this.outer.setStyles(styles);
		return this;
	},
	
	setContent: function(content){
		this.inner.setContent(content);
		return this;
	},
	
	inject: function(element, how){
		this.outer.inject(element, how);
		return this.draw();
	},
	
	setPosition: function(position){
		this.container.position({
			x: position.x-this.offsetLeft,
			y: position.y-this.offsetTop
		});
		return this;
	}

});
